package com.biscuit.page.basicservice.model.entities.mongo;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author mazihao
 * @createTime 2024/4/13 13:40
 */
@Data
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 7570983923076736245L;

    @MongoId
    private String id;

    @Field("create_time")
    private LocalDateTime createTime;


    @Field(value = "update_time")
    private LocalDateTime updateTime;

}
